package coms.dto;

import java.io.Serializable;
import java.util.List;

public class Publication implements Serializable{

    public static final int PENDING = 0;
    public static final int SELECTED = 1;
    public static final int REJECTED = -1;
    
    private ConferenceItem conferenceItem;
    private List<String> keywords;
    private int id;
    private String title;
    private String content;
    private User firstAuthor;
    private PresentationType presentationType;
    private List<User> reviewers;
    private List<User> coAuthor;
    private int status;
    private double rating;

    public void setRating(double rating) {
        this.rating = rating;
    }

    public double getRating() {
        return rating;
    }
    private List<Review> reviews;
    
    public List<Review> getReviews() {
        return reviews;
    }

    public void setReviews(List<Review> reviews) {
        this.reviews = reviews;
    }
    public List<String> getKeywords() {
        return keywords;
    }

    public void setKeywords(List<String> keywords) {
        this.keywords = keywords;
    }

    public List<User> getCoAuthor() {
        return coAuthor;
    }

    public void setCoAuthor(List<User> coAuthor) {
        this.coAuthor = coAuthor;
    }

    public ConferenceItem getConferenceItem() {
        return conferenceItem;
    }

    public void setConferenceItem(ConferenceItem conferenceItem) {
        this.conferenceItem = conferenceItem;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public User getFirstAuthor() {
        return firstAuthor;
    }

    public void setFirstAuthor(User firstAuthor) {
        this.firstAuthor = firstAuthor;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public PresentationType getPresentationType() {
        return presentationType;
    }

    public void setPresentationType(PresentationType presentationType) {
        this.presentationType = presentationType;
    }

    public List<User> getReviewers() {
        return reviewers;
    }

    public void setReviewers(List<User> reviewers) {
        this.reviewers = reviewers;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

   

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    
    public String getStatusStr(){
         if (status == PENDING) return "PENDING REVIEW";
         else if (status == SELECTED) return "SELECTED";
           else return "REJECTED";
    }
    
}
